<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<script type="text/javascript">
    var appShipManageDataGrid;
    $(function() {
        appShipManageDataGrid = $('#appShipManageDataGrid').datagrid({
            url : '${path }/appShipManage/dataGrid',
            striped : true,
            rownumbers : true,
            pagination : true,
            singleSelect : true,
            idField : 'id',
            sortName : 'id',
            sortShip : 'asc',
            pageSize : 20,
            pageList : [ 10, 20, 30, 40, 50, 100, 200, 300, 400, 500 ],
            frozenColumns : [ [ {
                title : 'id',
                field : 'id',
                width : 40,
                hidden : true
            } ] ],
            columns : [ [ {
                field : 'shipCode',
                title : '发货单号',
                width : 200
            },{
                field : 'orderCode',
                title : '订单单号',
                width : 200
            },{
                field : 'goodsName',
                title : '商品名称 ',
                width : 180
            },{
                field : 'goodsTprice',
                title : '商品总价',
                width : 80
            },{
                field : 'expressName',
                title : '快递单号',
                width : 100
            },{
                field : 'expressNum',
                title : '收货人电话',
                width : 130
            },{
                field : 'createTime',
                title : '创建时间',
                width : 130
            },{
                field : 'action',
                title : '操作',
                width : 130,
                formatter : function(value, row, index) {
                    var str = '';
                    <shiro:hasPermission name="/appShipManage/edit">
                        str += $.formatString('<a href="javascript:void(0)" class="appShipManage-easyui-linkbutton-edit" data-options="plain:true,iconCls:\'fi-pencil icon-blue\'" onclick="editAppShipManageFun(\'{0}\');" >编辑</a>', row.id);
                    </shiro:hasPermission>
                    <shiro:hasPermission name="/appShipManage/delete">
                        str += '&nbsp;&nbsp;|&nbsp;&nbsp;';
                    str += $.formatString('<a href="javascript:void(0)" class="appShipManage-easyui-linkbutton-del" data-options="plain:true,iconCls:\'fi-x icon-red\'" onclick="deleteAppShipManageFun(\'{0}\');" >删除</a>', row.id);
                    </shiro:hasPermission>
                    return str;
                }
            } ] ],
            onLoadSuccess:function(data){
                $('.appShipManage-easyui-linkbutton-del').linkbutton({text:'删除'});
                $('.appShipManage-easyui-linkbutton-edit').linkbutton({text:'编辑'});
            },
            toolbar : '#appShipManageToolbar'
        });
    });


</script>
<div class="easyui-layout" data-options="fit:true,bShip:false">
    <div data-options="region:'center',fit:true,bShip:false">
        <table id="appShipManageDataGrid" data-options="fit:true,bShip:false"></table>
    </div>
</div>
